<?php
/**
 * User: taodingfei
 * Date: 17-3-22
 * Time: 下午4:10
 */

class DemoA{
    private $name;

    public function __construct($name="taodingfei")
    {
        $this->name=$name;
    }
}

class DemoB{
    private $demo;

    public function __construct(DemoA $a)
    {
        $this->demo=$a;
    }
}

require_once __DIR__."/../init/autoload.php";

$app=new \Zeus\Foundation\Application(dirname(__DIR__));
$app->bootstrap();
$response=$app->handle($request=\Zeus\Http\Request::createFromGlobals());
$response->send();
$app->terminate($request, $response);